package com.css.dzj.zfjg.modules.feedback.service;

import com.css.dzj.zfjg.modules.feedback.entity.JgLhjgDffkEntity;
import com.querydsl.core.QueryResults;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * 联合监管答复完善Service
 */
@Service
public interface JgLhjgDffkService {

    /**
     * 添加联合监管答复信息
     * @param jgLhjgDffkEntity
     */
    void add(JgLhjgDffkEntity jgLhjgDffkEntity, HttpServletRequest request);

    /**
     * 修改联合监管答复信息
     * @param jgLhjgDffkEntity
     */
    void update(JgLhjgDffkEntity jgLhjgDffkEntity);

    /**
     * 通过id查找联合监管答复信息详情
     * @param uuid
     * @return
     */
    JgLhjgDffkEntity findById(String uuid);

    /**
     * 分页查询所有联合监管答复信息详情
     * @return
     */
    QueryResults<JgLhjgDffkEntity> queryAll(Pageable pageable);

    /**
     * 多条件分页查询联合监管答复信息详情
     * @param pageable
     * @param unionDeptname
     * @param fkIdea
     * @param fkUnionType
     * @param superviseItemCode
     * @return
     */
    QueryResults<JgLhjgDffkEntity> listJgLhjgDffkEntity(Pageable pageable, String unionDeptname, String fkIdea, String fkUnionType, String superviseItemCode);



    /**
     * 删除联合监管答复信息
     * @param jgLhjgDffkEntity
     */
    void delete(JgLhjgDffkEntity jgLhjgDffkEntity);

    /**
     * 查询全部
     * @return
     */
    public List<Map> getAll();

    List<JgLhjgDffkEntity> getList(String taskno);

    /**
     * 根据taskNo获取反馈个数
     * @param taskNo
     * @return
     */
    String getFkCountByTaskNo(String taskNo);
}
